//
//  Util.h
//  VietNews
//
//  Created by Nguyen .a.Hph on 5/4/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Util : NSObject
+(NSString *)getBaseUrl:(NSString *)url;
+(NSString *)getAbsoluteUrl:(NSString *)url parentUrl:(NSString *)parentUrl;
+(NSString*)pathForResource:(NSString*)resourcepath directory:(NSString *)directoryStr;
+(void)addRoundedRectToPath:(CGContextRef)context rect:(CGRect)rect ovalWidth:(float)ovalWidth ovalHeight:(float)ovalHeight;
+(void)displayMessage:(NSString *)message withTitle:(NSString *)title;
@end

@interface NSString (CSharp)
-(int)indexOf:(NSString *)substring;
-(int)indexOf:(NSString *)substring fromIndex:(int)index;
-(int)lastIndexOf:(NSString *)substring;
-(NSString *)trimEnd:(NSString *)st;
-(NSString *)trimStart:(NSString *)st;
-(NSString *)trimWhitespace;
-(NSString *)substringBetween:(NSString *)st1 st2:(NSString *)st2;
@end
